@blueColor: #007ef9;
@lightBlueColor: #9fc7ef;
@activeBlueColor: #016dd7;
@hoverBlueColor: #409efa;
@orangeColor: #f39c12;
@whiteColor: #ffffff;
@blackColor: #262626;
@lightGrayColor: #bfbfbf;
@deepGrayColor: #595959;
@grayColor: #8c8c8c;
@bgGrayColor: #f6f6f8;
@borderColor: #eeeeee;

@boxShadow: 0 2px 5px 1px #262626;

@loginWidth: 300px;
@loginHeight: 375px;

@collectWidth: 520px;
@collectHeight: 520px;

html,
body {
  font: normal normal normal 14px Helvetica Neue, Helvetica, Hiragino Sans GB,
    Arial, sans-serif;
  background: @bgGrayColor;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
input,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  outline: none;
  list-style: none;
}

i {
  font-style: normal;
}

img {
  border: 0;
}

a {
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

button {
  border: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #d4d5d673;
}

/* commom */
.center {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  box-shadow: 0 2px 5px 1px #26262648;
}

.nowrap {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

input.taosha-input {
  line-height: 14px;
  border: 1px solid @borderColor;
  padding: 0 6px;
  border-radius: 3px;
  height: 40px;
  &:hover, &:focus {
    border: 1px solid @blueColor;
  }
}

button.confirm-button {
  background: @blueColor;
  width: 60px;
  height: 40px;
  color: @whiteColor;

  &:hover {
    background: @hoverBlueColor;
  }

  &:active {
    background: @activeBlueColor;
  }

  &:disabled {
    color: #bfbfbf;
    border: 1px solid #dddddd;
  }
}

button.common-button {
  background: @whiteColor;
  width: 60px;
  height: 40px;
  color: @blueColor;
  border: 1px solid @blueColor;

  &:disabled {
    color: #bfbfbf;
    border: 1px solid #dddddd;
  }
}

/* login */
.login-container {
  width: @loginWidth;
  height: @loginHeight;

  .taosha-logo {
    margin-top: 30px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
      width: 42px;
      height: 42px;
      border-radius: 50%;
    }
    span {
      color: @blueColor;
      font-size: 20px;
      font-weight: bold;
      margin-left: 10px;
    }
  } 
  
  .login-form {
    margin-top: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    input.login-input {
      margin-bottom: 10px;
      height: 40px;
      width: 80%;
    }

    button {
      margin-top: 25px;
      width: 80%;
    }

  }
}

.collect-container {
  width: @collectWidth;
  height: @collectHeight;
  .collect-header {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e1e1e1;

    .collect-header-logo {
      display: flex;
      align-items: center;
      img {
        margin-left: 10px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
      }
  
      span.header-title {
        color: @blueColor;
        font-weight: bold;
        font-size: 15px;
        margin-left: 10px;
      }
    }

    .logout-button {
      font-size: 12px;
      color: @deepGrayColor;
    }
  }

  .collect-content {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
    .collected-icon {
      margin-top: 5px;
      margin-bottom: -15px;
      text-align: right;
      font-size: 15px;
      display: none;
    }

    .collect-base {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      
      input {
        width: 100%;
        margin-top: 25px;
      }
    }

    .collect-label-content {
      margin-top: 15px;
      .collect-label-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .label-title {
          color: @deepGrayColor;
        }
        .search-input {
          width: 170px;
          height: 28px;
          padding-right: 15px;
        }
        .taosha-input-clear {
          position: absolute;
          top: 8px;
          right: 8px;
          color: @deepGrayColor;
          font-size: 12px;
          cursor: pointer;
        }
      }
    

      .label-list {
        display: flex;
        flex-wrap: wrap;
        margin-top: 5px;
        max-height: 120px;
        overflow: auto;

        .label-item {
          display: flex;
          align-items: center;
          max-width: 175px;
          height: 32px;
          line-height: 30px;
          border: 1px solid @deepGrayColor;
          padding: 0px 8px;
          border-radius: 40px;
          cursor: pointer;
          user-select: none;
          margin: 4px 2px 4px;

          span {
            max-width: 140px;
            white-space: nowrap;
            overflow: hidden;
          }
          
          i {
            background-color: @blueColor;
            color: white;
            padding: 0px 4px;
            height: 20px;
            min-width: 18px;
            line-height: 20px;
            margin-left: 5px;
            border-radius: 10px;
          }
        } 

        .label-active-item {
          background: @lightBlueColor;
          border: 1px solid @blueColor
        }

        .no-tags-tip {
          margin: 4px auto;
          color: @lightGrayColor;
        }

      }
    }

    .collect-is-public {
      margin-top: 20px;
      color: @grayColor;
      user-select: none;
      cursor: pointer;
      display: inline-block;
      width: 100px;
      span {
        margin-left: 8px;
      }
    
    }

    .collect-button-area {
      margin-top: 20px;
      display: flex;
      justify-content: space-between;
      button {
        width: 90px;
      }

      button.cancel-collect {
        margin-left: 100px;
        display: none;
      }
    }
  }
}

.taosha-container {
  .toast-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 40px;
    padding: 0 20px;
    height: 48px;
    background:rgba(0,0,0,0.55);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    span {
      display: inline-block;
      color: #fff;
      font-size: 14px;
      text-align: center;
    }
  }
}


